package com.harmony.pilot.knowledge.repository;

import com.harmony.pilot.knowledge.entity.GnTarget;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * GN构建目标Repository
 */
@Repository
public interface GnTargetRepository extends JpaRepository<GnTarget, Long> {
    
    /**
     * 根据目标名称查找
     */
    List<GnTarget> findByTargetName(String targetName);
    
    /**
     * 根据目标类型查找
     */
    List<GnTarget> findByTargetType(String targetType);
}

